package laya.util;

import java.util.*;
import java.text.*;

public abstract class DatetimeUtils
{
	public static Date StringToDatetime(String strDatetime, String strFormat)
	{
		SimpleDateFormat sdf = new SimpleDateFormat(strFormat);
		return sdf.parse(strDatetime, new ParsePosition(0));
	}
	
	public static Date StringToDatetime(String strDatetime)
	{
		return StringToDatetime(strDatetime, "yyyy-MM-dd HH:mm:ss");
	}
}
